package cn.nawang.ebeim.client.bean;

public class DataSourceVersion {
  private int majorVersion;
  private int minorVersion;

  public DataSourceVersion(int majorVersion, int minorVersion) {
    super();
    this.majorVersion = majorVersion;
    this.minorVersion = minorVersion;
  }

  public int getMajorVersion() {
    return majorVersion;
  }

  public void setMajorVersion(int majorVersion) {
    this.majorVersion = majorVersion;
  }

  public int getMinorVersion() {
    return minorVersion;
  }

  public void setMinorVersion(int minorVersion) {
    this.minorVersion = minorVersion;
  }

  public String getVersion() {
    return majorVersion + "." + minorVersion;
  }

  public boolean isInitial() {
    return (majorVersion <= 0 && minorVersion <= 0);
  }
}
